Skip to content

Fix bad comparison of c string#1347

Merged
kewde merged 1 commit into
TryGhost:masterfrom
mtgto:fix_warning
Jul 2, 2020
Merged

Fix bad comparison of c string#1347
kewde merged 1 commit into
TryGhost:masterfrom
mtgto:fix_warning

Conversation

@mtgto

@mtgto mtgto commented Jun 23, 2020

Copy link
Copy Markdown
Contributor

(While investigation of #1335) I found some bad c-string comparison.
C++ compiler already warns this bug in CI.
example https://travis-ci.org/github/mapbox/node-sqlite3/jobs/685282346#L683

IMO, this bug doesn't really seem to cause negative consequences, thanks to awesome modern C++ compiler optimization.

@kewde

kewde commented Jul 2, 2020

Copy link
Copy Markdown
Collaborator

Thanks again @mtgto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants